//
//  UrlRequestManager.h
//  LO_MUSIC
//
//  Created by lanou3g on 16/3/2.
//  Copyright © 2016年 徐强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "singleton.h"

typedef NS_ENUM(NSInteger,requestUrlType){
    GET,
    POST
};
typedef void(^successBlock)(id item);
typedef void(^failBlock)(NSError *error);

@interface UrlRequestManager : NSObject

single_interface(UrlRequestManager)

+ (void)requestWith:(requestUrlType )type URL:(NSString *)URL condition:(NSDictionary *)condition SuccessBlock:(successBlock )successBlock failBlock:(failBlock)failBlock;

@end
